package edu.sctu.zhengsenwen.month201506.day20150607.StudentsAndCanteen;

/**
 * Created by user15 on 2015/6/8.
 */
public class Main {

    public static void main(String[] args) {

//       对餐厅赋值
        Canteen canteen;

        CanteenData canteenData = new CanteenData();

        canteen = canteenData.setCanteenData();




        //进入餐厅的学生信息

        System.out.println("Insert student's information");

        Students students = new Students();


        StudentData studentData = new StudentData();

        students = studentData.setStudentData();

        studentData.setMoney();

        System.out.println(studentData.setMoney());


//
//        //所有学生信息
//        studentData.printStudentAllData(students);




 //        学生选择窗口

        System.out.println("student choose windows");


        LunchWindow lunchWindow = students.ChooseWindow(canteen);




//        学生选择并购买菜品
        System.out.println("student buy dishes");


        float balance = studentData.setMoney();


        float finalPrice = students.chooseDish(lunchWindow);


        students.payForMeal(finalPrice,balance);




//        选择座位坐下
        System.out.println("student choose seat");

        students.chooseSeat(canteen);

    }
}
